package com.example.park.dao;

import com.example.park.entity.ParkingEntity;
import com.example.park.entityVO.ParkingDimVO;
import com.example.park.entityVO.ParkingVO;
import com.example.park.entityVO.WeiXinParking;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Mapper
@Component
public interface ParkingDao {

    List<ParkingVO> queryVOByDim(ParkingDimVO parkingDimVO);

    List<ParkingEntity> weiXinQuery(WeiXinParking weiXinParking);

    List<ParkingVO> queryVOByParam(ParkingVO parkingVO);

    int insert(ParkingEntity parkingEntity);

    int update(ParkingEntity parkingEntity);

    int delete(@Param("id") Integer id);

    int unbind(@Param("id") Integer id);
}
